package lab02.test27;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("请输入您的数");
            Scanner scanner=new Scanner(System.in);
            int a;
            try {
                a = scanner.nextInt();
            }catch (Exception e){
                System.out.println("异常，请输入整数");
            }
    }
}
